package com.ruicar.afs.cloud.afscase.loanreviewrule.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author: yk.Li
 * @date 2020-06-17 03:56:19
 * @description 复核规则信息表  实体类
 */
@Data
@Accessors(chain = true)
@TableName(value = "conf_loan_review_rule", autoResultMap = true)
public class LoanReviewRule extends BaseEntity<LoanReviewRule> {

    /**
     * 规则id
     */
    @ApiModelProperty("规则id")
    @JsonSerialize(using = com.fasterxml.jackson.databind.ser.std.ToStringSerializer.class)
    @JSONField(serializeUsing = com.alibaba.fastjson.serializer.ToStringSerializer.class)
    private Long ruleId;
    /**
     * 复核规则号
     */
    @ApiModelProperty("复核规则号")
    private String reviewNo;
    /**
     * 复核规则名称
     */
    @ApiModelProperty("复核规则名称")
    private String reviewName;
    /**
     * 是否启用
     */
    @ApiModelProperty("是否启用")
    private String isEnable;
    /**
     * 规则描述
     */
    @ApiModelProperty("规则描述")
    private String ruleDesc;
    /**
     * 生效时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("生效时间")
    private Date effectTime;
    /**
     * 失效时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("失效时间")
    private Date failureTime;

}
